package huang.dao;

import huang.domain.Commodity;

import java.util.List;

/**
 * Creat by 黄伟洪 on 2021/7/21 11:24
 */
public interface CommodityDao {

    List<Commodity> findAllCommodity();

    List<Commodity> findCommodityByNameORType(String msg);

    Commodity findCommodityById(Integer c_id);

    int addCommodity(String c_name,Float c_price,String c_type,int c_sales,int c_stock);

    int deleteCommodity(int id,String c_name);

    int deleteCommoditys(List<Integer> id);

    int updateCommodity(int id,String c_name,Float c_price,String c_type,int c_sales,int c_stock);
}
